package com.hoshiicloud.marketmanagement.feign;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.market.param.activities.ActivitiesAddParam;
import com.hoshiicloud.marketmanagement.feign.hystrix.HystrixIdGeneratorFeignFallback;
import io.swagger.annotations.ApiOperation;
import javax.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author MarkerCCC
 * @date 2019-09-17 - 15:19
 */
@FeignClient(name = "hoshiicloud-market", fallback = HystrixIdGeneratorFeignFallback.class)
public interface MarketService {

    /**
     * 保存活动内容
     *
     * @param param param
     * @return Response
     */
    @PostMapping("/save")
    @ApiOperation(value = "新增预售促销")
    Response save(@RequestBody @Valid ActivitiesAddParam param);
}
